import Vue from 'vue'
//使用yarn或者npm安装3.53版本的vue-router包(项目记得重启)
//1、引入vueRouter
import VueRouter from 'vue-router'
import Login from "@/views/login.vue"
import Enroll from "@/views/enroll.vue"
import Essay from "@/views/essay.vue"
import List from "@/views/list.vue"
//2、使用vue.use进行注册
Vue.use(VueRouter)
//3、开始配置vueRouter映射表关系
const router = new VueRouter({
  //通过routes配置路由规则
  // linkActiveClass:'模糊匹配',
  // linkExactActiveClass:'精确匹配',
  routes: [
    {
      path: '/login',
      component: Login
    },
    {
      path: '/enroll',
      component: Enroll
    },
    {
      path: '/essay',
      component: Essay
    },
    {
      path: '/list',
      component: List
    },
  ]
})

export default router